package com.coffee.order.service.inquire.dao;

import com.coffee.order.api.inquire.query.InquireBuyerConfirmPlanQuery;
import com.coffee.order.service.inquire.bean.InquireBuyerConfirmPlan;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InquireBuyerConfirmPlanDao {
	public InquireBuyerConfirmPlan findById(Integer id);
	
	public InquireBuyerConfirmPlan findByIdForUpdate(Integer id);
	
	public List<InquireBuyerConfirmPlan> findByIds(@Param("idList") List<Integer> idList);

	public Integer count(@Param("param") InquireBuyerConfirmPlanQuery param);

	public List<InquireBuyerConfirmPlan> page(@Param("param") InquireBuyerConfirmPlanQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

	public List<InquireBuyerConfirmPlan> list(@Param("param") InquireBuyerConfirmPlanQuery param);

	public InquireBuyerConfirmPlan findFirst(@Param("param") InquireBuyerConfirmPlanQuery param);

	public Integer insert(InquireBuyerConfirmPlan param);

	Integer insertBatch(List<InquireBuyerConfirmPlan> list);

	public void updateById(@Param("param") InquireBuyerConfirmPlan param);
	
	public Integer deleteById(Integer id);
	
	public Integer deleteByIds(List<Integer> idList);
	
}